package com.firebird.app.fekpsl.mvp.me

import com.firebird.app.fekpsl.base.BasePresenter
import com.firebird.app.fekpsl.ext.ss

/**
 * Created by chenxz on 2018/6/3.
 */
class NiceNamePresenter : BasePresenter<NiceNameContract.Model, NiceNameContract.View>(), NiceNameContract.Presenter {

    override fun createModel(): NiceNameContract.Model? = NiceNameModel()

    override fun updateNiceName(userUuid: String, niceName: String) {
        mModel?.updateNiceName(userUuid, niceName)?.ss(mModel, mView) {
            mView?.updateNiceNameSuccess(success = true)
            //mView?.updateNiceNameFail()
        }
    }
}